<?php
	include "C:/xampp/htdocs/jrckeditor/db_edit/dbinfo.inc.php";
	$did = $_POST['did'];
	$uid = $_POST['uid'];
	$char = $_POST['char'];
	$loc = $_POST['loc'];
	
	mysql_connect($hostname, $username, $password, FALSE);
	@mysql_select_db($database) or die("Unable to select database");
	
	$query = 'INSERT INTO `' . $database . '`.`' . $edit_table . '` (`did`, `uid`, `char`, `location`)';
	$query .= ' VALUES (' . $did . ', ' . $uid . ',\'' . $char . '\', ' . $loc . ');';
	
	$result = mysql_query($query);
	
	if (!$result) {
		die('Invalid query: ' . mysql_error());
	}
	mysql_close();
?>